/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rcnss.data;


/**
 *
 * @author Guesmi
 */
public enum TypeUser {
    ADMINISTRATOR("AdminForm"),
    UNDEFINED("Guest"),
    USER("UserForm");

    private String value;
    private TypeUser(String v) {
        this.value = v;
    }

    public boolean equals(int i)
    {
        boolean r = false;
        switch(i){
            case 1:
                r = this.name().equals(TypeUser.ADMINISTRATOR.name());
                break;
            case 2:
                r = this.name().equals(TypeUser.USER.name());
                break;
        }
        return r;
    }

    public String getValue(){
        return this.value;
    }



}
